package com.wrupple.vegetate.server;

import java.io.IOException;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.wrupple.muba.common.domain.structure.TreeNode;
import com.wrupple.vegetate.domain.VegetateToken;
import com.wrupple.vegetate.domain.exceptions.IntegrationLayerException;

public interface VegetateServiceLocator extends TreeNode<VegetateServiceLocator>{

	VegetateServiceLocator getServiceBranchForToken(VegetateToken token) throws IntegrationLayerException;

	void serve(HttpServletRequest req, HttpServletResponse resp, Map<String, String> pathParameters) throws IOException,IntegrationLayerException;

	String getName();


}
